package com.wx.model;

import java.util.Date;

public class Books {
	private int bookid;
	private int typeid;//图书类id
	private String bookname;
	private String author;
	private String press;
	private Date pubtime;//出版时间
	private String dis;
	private int bookcount;
	private double price;
	private int salenum;
	private String picture;
	private int cartcount;
	public Books(int bookid, int typeid, String bookname, String author, String press, Date pubtime, String dis,
			int bookcount, double price, int salenum, String picture, int cartcount) {
		super();
		this.bookid = bookid;
		this.typeid = typeid;
		this.bookname = bookname;
		this.author = author;
		this.press = press;
		this.pubtime = pubtime;
		this.dis = dis;
		this.bookcount = bookcount;
		this.price = price;
		this.salenum = salenum;
		this.picture = picture;
		this.cartcount = cartcount;
	}
	public int getCartcount() {
		return cartcount;
	}
	public void setCartcount(int cartcount) {
		this.cartcount = cartcount;
	}
	public Books(int bookid, int typeid, String bookname, String author, String press, Date pubtime, String dis,
			int bookcount, double price, int salenum, String picture) {
		super();
		this.bookid = bookid;
		this.typeid = typeid;
		this.bookname = bookname;
		this.author = author;
		this.press = press;
		this.pubtime = pubtime;
		this.dis = dis;
		this.bookcount = bookcount;
		this.price = price;
		this.salenum = salenum;
		this.picture = picture;
	}
	
	public int getBookid() {
		return bookid;
	}

	public void setBookid(int bookid) {
		this.bookid = bookid;
	}

	public int getTypeid() {
		return typeid;
	}

	public void setTypeid(int typeid) {
		this.typeid = typeid;
	}

	public String getBookname() {
		return bookname;
	}

	public void setBookname(String bookname) {
		this.bookname = bookname;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getPress() {
		return press;
	}

	public void setPress(String press) {
		this.press = press;
	}

	public Date getPubtime() {
		return pubtime;
	}

	public void setPubtime(Date pubtime) {
		this.pubtime = pubtime;
	}

	public String getDis() {
		return dis;
	}

	public void setDis(String dis) {
		this.dis = dis;
	}

	public int getBookcount() {
		return bookcount;
	}

	public void setBookcount(int bookcount) {
		this.bookcount = bookcount;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public int getSalenum() {
		return salenum;
	}

	public void setSalenum(int salenum) {
		this.salenum = salenum;
	}

	public String getPicture() {
		return picture;
	}

	public void setPicture(String picture) {
		this.picture = picture;
	}

	public Books(int bookid, int typeid, String bookname, String author, String press, Date pubtime, String dis,
			int bookcount, double price, int salenum) {
		super();
		this.bookid = bookid;
		this.typeid = typeid;
		this.bookname = bookname;
		this.author = author;
		this.press = press;
		this.pubtime = pubtime;
		this.dis = dis;
		this.bookcount = bookcount;
		this.price = price;
		this.salenum = salenum;
	}
	public Books() {
		super();
		// TODO Auto-generated constructor stub
	}
	@Override
	public String toString() {
		return "Books [bookid=" + bookid + ", typeid=" + typeid + ", bookname=" + bookname + ", author=" + author
				+ ", press=" + press + ", pubtime=" + pubtime + ", dis=" + dis + ", bookcount=" + bookcount + ", price="
				+ price + ", salenum=" + salenum + ", picture=" + picture + "]";
	}
	public Books(String bookname, String picture,double price) {
		super();
		this.bookname = bookname;
		this.picture = picture;
		this.price=price;
	}
	public Books(int typeid, String bookname, String author, String press, Date pubtime, String dis, int bookcount,
			double price) {
		super();
		this.typeid = typeid;
		this.bookname = bookname;
		this.author = author;
		this.press = press;
		this.pubtime = pubtime;
		this.dis = dis;
		this.bookcount = bookcount;
		this.price = price;
		
	}
	public Books(int typeid, String bookname, String author, String press, Date pubtime, String dis, int bookcount,
			double price, String picture) {
		super();
		this.typeid = typeid;
		this.bookname = bookname;
		this.author = author;
		this.press = press;
		this.pubtime = pubtime;
		this.dis = dis;
		this.bookcount = bookcount;
		this.price = price;
		this.picture = picture;
	}
	
	
	
}
